import java.io.*;
public class Read implements Runnable {
    DataInputStream in;
    public void setDataInputStream(DataInputstream in){
        this.in = in;
    }
    public void run(){
        double result = 0;
        while(true) {
            try{ result =In.readDouble(); //读取服务器友送来的信息
            System. out .printin (“圓的面枳:"+result);
            System.out.print ("綸入圓的半径(放弃靖綸入N):");
            }
            catch(IOException e) {
                System.out.println("与服务器已断幵"+e);
                break;
            }
        }
    }
}


